package com.cmccgz.udacs_landlord_webapp.main.housemanager.list;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.HouseListDataBean;

import java.util.List;

/**
 * @author: Huang
 * @Descripion:
 * @date 2017/6/5 09:10
 */

public interface HouseListContract {

    interface HouseListPresenter extends BasePresenter{
        void setSearchType(String type);
        void getData(String keyword,String oCond,int page);
    }

    interface HouseListView extends BaseView<HouseListPresenter>{
        boolean isActive();
        void showLoading();
        void refreshDataSuccess(List<HouseListDataBean> houseList);
        void refreshDataFailed(String errorMsg);
        void loadMoreDataSuccess(List<HouseListDataBean> houseList);
        void loadMoreDataFailed(String errorMsg);
    }
}
